import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/rb-service/service/upload/upload/uploadPageList',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}

/* 成功地址下载 */

export const beforeDowSuccess = (id) => {
  return request({
    url: '/api/rb-service/service/upload/upload/clickUpload',
    method: 'post',
    params: {
      id
    }
  })
}

/* 失败地址下载 */
export const beforeDowFial = (id) => {
  return request({
    url: '/api/rb-service/service/upload/upload/clickUploadFail',
    method: 'post',
    params: {
      id
    }
  })
}